window.onload=function(){
	var choice={
		template:"#choice"
	}
	var select={
		template:"#select"
	}
	var computer={
		template:"#computer"
	}
	
	var quality={
		template:"#quality"
	}

//			配置路由
	var router =new VueRouter({
		routes:[{
			path:"/index",
			component:index,
			children:[{
					path:"/choice",
					component:choice
				},{
					path:"/select",
					component:select
				},{
					path:"/computer",
					component:computer
				},{
					path:"/quality",
					component:quality
				},{
					path:"/*",
//					重定向:当其他路径不满足时,执行此路径 , 重新指定路径
					redirect:"/choice"
			}]
		},{
				path:"/study",
				component:study
			},{
				path:"/my",
				component:my
			},{
				path:"/*",
	//					重定向:当其他路径不满足时,执行此路径 , 重新指定路径
				redirect:"/index"
			}]
		})
	

	new Vue({
		el:"#box",
		data:{
			// src:["img/cute01.jpg","img/cute01.jpg","收藏夹"]
		},
//				挂载路由
		
		router:router
	})
}